home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / TUTOROOT.PAK / STEP01.CPP < prev    next >
C/C++ Source or Header  |  1997-05-06  |  641b  |  24 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1994 by Borland International
  3. //   Tutorial application -- step01.cpp
  4. //----------------------------------------------------------------------------
  5. #include <owl/pch.h>
  6. #include <owl/applicat.h>
  7. #include <owl/framewin.h>
  8.  
  9. class TDrawApp : public TApplication {
  10.   public:
  11.     TDrawApp() : TApplication() {}
  12.  
  13.     void InitMainWindow()
  14.     {
  15.       SetMainWindow(new TFrameWindow(0, "Sample ObjectWindows Program"));
  16.     }
  17. };
  18.  
  19. int
  20. OwlMain(int /*argc*/, char* /*argv*/ [])
  21. {
  22.   return TDrawApp().Run();
  23. }
  24.